//
//  TopMenusCollectionViewCell.m
//  SUZHOUBANK
//
//  Created by apple on 16/4/12.
//  Copyright © 2016年 RuiFeng-WGCC. All rights reserved.
//

#import "TopMenusCollectionViewCell.h"

@implementation TopMenusCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame {
    
    if (self = [super initWithFrame:frame]) {
        [self.contentView addSubview:self.itemButton];
    }
    return self;
}

- (UIButton *)itemButton {
    
    if (!_itemButton) {
        _itemButton = [UIButton buttonWithType:UIButtonTypeCustom];
        _itemButton.frame = self.bounds;
        _itemButton.layer.cornerRadius = 10.0f;
        [_itemButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
        [_itemButton setBackgroundImage:[UIImage imageNamed:@"理财_未选中_菜单按钮"] forState:UIControlStateNormal];
        [_itemButton setBackgroundImage:[UIImage imageNamed:@"理财_选中_菜单按钮"] forState:UIControlStateHighlighted];
//        _itemButton.userInteractionEnabled = NO;
        _itemButton.titleLabel.font = [UIFont systemFontOfSize:20];
        [_itemButton setBackgroundColor:[UIColor clearColor]];
    }
    return _itemButton;
}
@end
